import React from 'react'
import { ComponentStory, ComponentMeta } from '@storybook/react'

import Component from '../../components/QuestionComponents/QuestionInput/Component'

type ComponentType = typeof Component

export default {
  title: 'Question/QuestionInput',
  component: Component,
} as ComponentMeta<ComponentType>

const Template: ComponentStory<ComponentType> = args => <Component {...args} />

// 默认属性
export const Default = Template.bind({})
Default.args = {}

// 设置属性
export const SetProps = Template.bind({})
SetProps.args = {
  title: '标题1',
  placeholder: '请输入标题 1...',
}
